package com.isp.org.server.interfaces.model.role.vo.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.isp.org.server.interfaces.model.role.vo.BaseRoleVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/1/26 11:35
 */
@Data
@ApiModel("角色信息查询响应")
@EqualsAndHashCode(callSuper = true)
public class RoleInfoResponse extends BaseRoleVO {

    @ApiModelProperty("角色ID")
    @JsonProperty("id")
    private Long id;

    @ApiModelProperty("创建时间")
    @JsonProperty("created_at")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createdAt;

    @ApiModelProperty("创建者")
    @JsonProperty("creator")
    private String creator;

    @ApiModelProperty("更新时间")
    @JsonProperty("updated_at")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updatedAt;

}
